package com.edgar.plugin.hooks

import com.android.build.gradle.api.ApplicationVariant
import org.gradle.api.Project
import org.gradle.api.Task

public abstract class BaseHooker<TASK extends Task>{

    ApplicationVariant variant
    Project project
    String packageName

    public BaseHooker(Project project,ApplicationVariant variant){
        this.project = project
        this.variant = variant
    }

    public void setPackageName(String packageName){
        this.packageName = packageName
    }

    public abstract def getTaskName()

    public abstract void beforeExecute(TASK task)

    public abstract void afterExecute(TASK task)
}